package com.yonyougov.devops.cruxcisupport.rancher.cluster;

import java.util.HashMap;
import java.util.Map;

public class ClusterEtcd {
    private String creation = "12h";
    private Map<String,Integer> extraArgs = new HashMap<>();
    private Integer gid = 0;
    private String retention = "72h";
    private Boolean snapshot = false;
    private Integer uid = 0;
    private String type = "etcdService";
    private BackupConfig backupConfig = new BackupConfig();

    public ClusterEtcd() {
    }

    public String getCreation() {
        return creation;
    }

    public void setCreation(String creation) {
        this.creation = creation;
    }

    public Map<String, Integer> getExtraArgs() {
        return extraArgs;
    }

    public void setExtraArgs(Map<String, Integer> extraArgs) {
        extraArgs.put("heartbeat-interval",500);
        extraArgs.put("election-timeout",500);
        this.extraArgs = extraArgs;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getRetention() {
        return retention;
    }

    public void setRetention(String retention) {
        this.retention = retention;
    }

    public Boolean getSnapshot() {
        return snapshot;
    }

    public void setSnapshot(Boolean snapshot) {
        this.snapshot = snapshot;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public BackupConfig getBackupConfig() {
        return backupConfig;
    }

    public void setBackupConfig(BackupConfig backupConfig) {
        this.backupConfig = backupConfig;
    }
}
